
<script>
(function () {
    var projects = {{ site.data.projects | jsonify }};
    var randomIndex = parseInt(Math.random() * (projects.length - 1));
    var project = projects[randomIndex];
    var url = 'http://github.com/fex-team/' + project.github;
    if ('url' in project) {
        url = project.url;
    }
    // document.write('<div class="banner" style="background:#' + project.banner + ' url(/public/images/banner/' + project.github + '.png) no-repeat center center;height:320px;"><a href="' + url + '" target="_blank"></a></div>');
    // 临时改成只挂 legend 广告#2776E4
    document.write('<div class="banner" style="background:#2776E4 url(/public/images/banner/h5.jpg) no-repeat center center;height:284px;"><a href="http://h5.baidu.com/" target="_blank"></a></div>');
})();
</script>

